num = list(range(3,31,3))

for i in num:
    print(i)